<html lang="zh" xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h1>修改员工信息</h1>
    <form th:action="@{/emp/do_modify_emp}" method="post">
        <input type="hidden" name="id" th:value="${emp.id}">
        <input type="text" name="name" th:value="${emp.name}"> <br>
        <select name="deptId">
            <option th:each="d:${depts}"
                    th:text="${d.name}"
                    th:value="${d.id}"
                    th:selected="${d.id == emp.deptId}"></option>

        </select>
        <br>
        <input type="submit">
    </form>
</body>
</html>